home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
libs
/
flilib
/
flisrc
/
jcreate.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-11-16
|
320b
|
20 lines
#include "jlib.h"
/* Create a file to read/write */
Jfile dos_create(title)
char *title;
{
union i86_regs reg;
reg.b.ah = 0x3c;
reg.w.cx = 0;
reg.w.dx = i86_ptr_offset(title);
reg.w.ds = i86_ptr_seg(title);
if (i86_sysint(0x21,®,®)&1) /* check carry */
return(0);
else
return(reg.w.ax);
}